package com.tydic.common.core.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * ResponseCodeEnum
 *
 * @author hej
 * @version 1.0
 * @create 2023-08-17
 */
@RequiredArgsConstructor
@Getter
public enum ResponseCodeEnum {
    SUCCESS(200, null),
    FAILURE(500, null),
    VERIFICATION_CODE_FAIL(201, "验证码有误"),

    RECORD_NOT_EXIST(301, "记录不存在!"),
    RECORD_NOT_EXIST_OR_APPLY(302, "记录不存在或已审核!"),
    RECORD_NOT_AUTH(303, "企业未通过认证!"),
    RECORD_IS_AUTH(304, "记录已审核过，请勿重复审核!"),

    INVALID_VALUE(401, "无效数值"),

    ;
    private final Integer code;
    private final String msg;

}
